package com.example.demo.enums;

/**
 * @Classname Test01
 * @Description TODO
 * @Date 2019/10/22 9:43
 * @Created by yby
 */
public class Test01 {

    public static void main(String[] args) {
        System.out.println("value="+TestEnum.one.getValue());
        System.out.println("value="+TestEnum.one.getValue());
        System.out.println("value="+TestEnum.one.getValue());

        String str1 = "Aoc.Iop.Aoc.Iop.Aoc";		//定义三个一样的字符串
        String str2 = "Aoc.Iop.Aoc.Iop.Aoc";
        String str3 = "Aoc.Iop.Aoc.Iop.Aoc";

        String str11 = str1.replace(".", "#");		// str11 = "Aoc#Iop#Aoc#Iop#Aoc"
        String str22 = str2.replaceAll(".", "#");	// str22 = "###################"
        String str33 = str3.replaceFirst(".", "#");	// str33 = "#oc.Iop.Aoc.Iop.Aoc"
        System.out.println("str11="+str11);
        System.out.println("str22="+str22);
        System.out.println("str33="+str33);
    }
}
